package com.dazhi.show.story.emperor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmperorMapper extends BaseMapper<Emperor> {

    @Select("select * from emperor where dynasty = #{dynasty}")
    List<Emperor> getByDynasty(@Param("dynasty") String dynasty);
}
